package pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.lang.Nullable;

import javax.annotation.Resource;

public class People {

	@Resource
//	@Autowired
//	@Qualifier(value = "cat222")
	private Cat cat;

	@Resource
//	@Autowired
//	@Qualifier(value = "dog111")
	private Dog dog;
	private String name;

	public Cat getCat() {
		return cat;
	}

	public Dog getDog() {
		return dog;
	}

	public String getName() {
		return name;
	}

	@Override
	public String toString() {
		return "People{" +
				"cat=" + cat +
				", dog=" + dog +
				", name='" + name + '\'' +
				'}';
	}
}
